package top.wilbert.collegelink.user.feign;/**
 * @author augus
 * @create 2022-07-27-14:48
 */


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;
import top.wilbert.collegelink.common.utils.R;

/**
 * @author Augus
 * @ClassName:ThirdPartFeignService
 * @date 2022/7/27 14:48
 * @Version 1.0
 **/
@FeignClient("collegelink-third-party")
public interface ThirdPartFeignService {

    @GetMapping("/sms/sendCode")
    public void sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);

    @PostMapping(value = "/oss/uploadAvatar", consumes = {MediaType.MULTIPART_FORM_DATA_VALUE})
    public String uploadAvatar(@RequestPart("avatar") MultipartFile avatar);
}
